package org.co.controller;

import org.co.model.Student;
import org.co.service.impl.SelectAllStudentImpl;

import java.util.List;

public class SelectAllStudentController {

    // 获取一个SelectAllStudentService对象
    static SelectAllStudentImpl selectAllStudentImpl;

    static {
        selectAllStudentImpl = new SelectAllStudentImpl();
    }


    public static void main(String[] args) {

        // 1. 查询所有学生信息
        List<Student> allStudentList = selectAllStudentImpl.getAllStudent();
        allStudentList.forEach(System.out::println);

    }
}
